<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/5/12
  Time: 22:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注销界面</title>
    <base href="http://localhost:8080/onlineflower/">
    <%@ include file="/page/comment/head.jsp"%>
    <style type="text/css">
        #content{
            width: 70%;
            margin: auto;
            margin-top: 200px;
        }
    </style>
</head>
<body>
<%@include file="/page/enterprise/head_nav.jsp"%>
<div id="content">
    <button type="button" class="btn btn-secondary btn-lg btn-block" data-toggle="modal" data-target="#exampleModal">去注销本企业</button>

</div>

<div id="exampleModal" class="modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">注销企业</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <p>是否已确定注销企业${sessionScope.enterprise.enterprise_name}</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">NO</button>
                <button id="deleteSelf" type="button" class="btn btn-primary">YES</button>
            </div>
        </div>
    </div>
</div>

</body>
<script>
    $(function () {
        $('#deleteSelf').click(function () {
               location.href="http://localhost:8080/onlineflower/enterpriseServlet?action=delete";
        })
    })
</script>
</html>
